home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UNIXTOOL / UNIXLIB37B / !UnixLib37_src_clib_h_errno < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-09  |  5.9 KB  |  233 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/h/RCS/errno,v $
  4.  * $Date: 1996/10/30 21:58:58 $
  5.  * $Revision: 1.4 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: errno,v $
  10.  * Revision 1.4  1996/10/30 21:58:58  unixlib
  11.  * Massive changes made by Nick Burret and Peter Burwood.
  12.  *
  13.  * Revision 1.3  1996/09/16 21:23:51  unixlib
  14.  * CL_0002 Nick Burret
  15.  * Minor changes to file handling
  16.  * Change most error numbers, and use in assembler sources (SJC)
  17.  * Various minor bug fixes and compatability changes.
  18.  *
  19.  * Revision 1.2  1996/05/06 09:01:33  unixlib
  20.  * Updates to sources made by Nick Burrett, Peter Burwood and Simon Callan.
  21.  * Saved for 3.7a release.
  22.  *
  23.  * Revision 1.1  1996/04/19 21:02:57  simon
  24.  * Initial revision
  25.  *
  26.  ***************************************************************************/
  27.  
  28. /* ANSI Standard 4.1.3: Errors <errno.h> */
  29.  
  30. #ifndef __ERRNO_H
  31. #define __ERRNO_H
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. extern volatile int __errno;
  38. #define errno __errno
  39.  
  40. extern char *sys_errlist[];
  41. extern int sys_nerr;
  42.  
  43. /* Operation not permitted.  */
  44. #define EPERM           1
  45. /* No such file or directory.  */
  46. #define ENOENT        2
  47. /* No such process.  */
  48. #define ESRCH        3
  49. /* Interrupted function call. */
  50. #define EINTR        4
  51. /* Input/output error.  */
  52. #define EIO        5
  53. /* No such device or address (device not configured).  */
  54. #define ENXIO        6
  55. /* Argument list too long.  */
  56. #define E2BIG        7
  57. /* Invalid executable file format (exec format error). */
  58. #define ENOEXEC     8
  59. /* Bad file descriptor.  */
  60. #define EBADF        9
  61. /* There are no child processes.  */
  62. #define ECHILD        10
  63. /* Resource deadlock avoided.  */
  64. #define EDEADLK             11
  65. /* Cannot allocate memory.  */
  66. #define ENOMEM        12
  67. /* Permission denied.
  68.    File permissions do not allow the attempted operation.  */
  69. #define EACCES        13
  70. /* Bad address. An invalid pointer was detected.  */
  71. #define EFAULT        14
  72. /* Block device required.  */
  73. #define ENOTBLK     15
  74. /* Device busy. Caused by a system resource that can't be shared
  75.    is already in use.  */
  76. #define EBUSY        16
  77. /* File exists.  */
  78. #define EEXIST        17
  79. /* Invalid cross-device link.  */
  80. #define EXDEV        18
  81. /* Operation not supported by device.  */
  82. #define ENODEV        19
  83. /* Not a directory.  */
  84. #define ENOTDIR     20
  85. /* Is a directory.  */
  86. #define EISDIR        21
  87. /* Invalid argument.  */
  88. #define EINVAL        22
  89. /* Too many open files in system.  */
  90. #define ENFILE        23
  91. /* Too many open files.  */
  92. #define EMFILE        24
  93. /* Inappropriate ioctl for device.  */
  94. #define ENOTTY        25
  95. /* Text file busy.  */
  96. #define ETXTBSY     26
  97. /* File too large.  */
  98. #define EFBIG        27
  99. /* No space left on device.  */
  100. #define ENOSPC        28
  101. /* Illegal seek.  */
  102. #define ESPIPE        29
  103. /* Read-only filing system.  */
  104. #define EROFS        30
  105. /* Too many links.  */
  106. #define EMLINK        31
  107. /* Broken pipe.  */
  108. #define EPIPE        32
  109. /* Domain error.  */
  110. #define EDOM        33
  111. /* Range error.  */
  112. #define ERANGE        34
  113. /* Operation would block.  */
  114. #define EWOULDBLOCK    35
  115. /* Operation now in progress.  */
  116. #define EINPROGRESS    36
  117. /* Operation already in progress.  */
  118. #define EALREADY    37
  119. /* Socket operation on non-socket.  */
  120. #define ENOTSOCK    38
  121. /* Destination address required.  */
  122. #define EDESTADDRREQ    39
  123. /* Message too long.  */
  124. #define EMSGSIZE    40
  125. /* Protocol wrong type for socket.  */
  126. #define EPROTOTYPE    41
  127. /* Option not supported by protocol.  */
  128. #define ENOPROTOOPT    42
  129. /* Protocol not supported */
  130. #define EPROTONOSUPPORT    43
  131. /* Socket type not supported */
  132. #define ESOCKTNOSUPPORT    44
  133. /* Operation not supported */
  134. #define EOPNOTSUPP    45
  135. /* Protocol family not supported.  */
  136. #define EPFNOSUPPORT    46
  137. /* Address family not supported by protocol family. */
  138. #define EAFNOSUPPORT    47
  139. /* Address already in use */
  140. #define EADDRINUSE    48
  141. /* Can't assign requested address.  */
  142. #define EADDRNOTAVAIL    49
  143. /* Network is down.  */
  144. #define ENETDOWN    50
  145. /* Network unreachable */
  146. #define ENETUNREACH    51
  147. /* Network dropped connection on reset.  */
  148. #define ENETRESET      52
  149. /* Software caused connection abort.  */
  150. #define ECONNABORTED    53
  151. /* Connection reset by peer */
  152. #define ECONNRESET    54
  153. /* No buffer space available */
  154. #define ENOBUFS        55
  155. /* Socket is already connected */
  156. #define EISCONN        56
  157. /* Socked is not connected */
  158. #define ENOTCONN    57
  159. /* Can't send after socket shutdown.  */
  160. #define ESHUTDOWN    58
  161. /* Too many references: can't splice.  */
  162. #define ETOOMANYREFS    59
  163. /* Connection timed out.  */
  164. #define ETIMEDOUT    60
  165. /* Connection refused */
  166. #define ECONNREFUSED    61
  167. /* Too many levels of symbolic links.  */
  168. #define ELOOP        62
  169. /* File name too long.  */
  170. #define ENAMETOOLONG    63
  171. /* Host is down.  */
  172. #define EHOSTDOWN    64
  173. /* Host unreachable.  */
  174. #define EHOSTUNREACH    65
  175. /* Directory not empty.  */
  176. #define ENOTEMPTY    66
  177. /* Too many processes.  */
  178. #define EPROCLIM    67
  179. /* Too many users.  */
  180. #define EUSERS        68
  181. /* Disc quota exceeded.  */
  182. #define EDQUOT        69
  183. /* Stale NFS file handle.  */
  184. #define ESTALE        70
  185. /* Too many levels of remote in path.  */
  186. #define EREMOTE        71
  187. /* RPC struct is bad.  */
  188. #define EBADRPC        72
  189. /* RPC version wrong.  */
  190. #define ERPCMISMATCH    73
  191. /* RPC program not available.  */
  192. #define EPROGUNAVAIL    74
  193. /* RPC program version wrong.  */
  194. #define EPROGMISMATCH    75
  195. /* RPC bad procedure for program.  */
  196. #define EPROCUNAVAIL    76
  197. /* No locks available.  */
  198. #define ENOLCK        77
  199. /* Function not implemented.  */
  200. #define ENOSYS        78
  201. /* Inappropriate file type or format.  */
  202. #define EFTYPE        79
  203. /* Authentication error.  */
  204. #define EAUTH        80
  205. /* Need authenticator.  */
  206. #define ENEEDAUTH    81
  207. /* Resource temporarily unavailable.  */
  208. #define EAGAIN        82
  209. /* Inappropriate operation for background process.  */
  210. #define EBACKGROUND    100
  211. /* Translator died.  */
  212. #define EDIED        101
  213. /* ? */
  214. #define ED        102
  215. /* A pretty bad error.  */
  216. #define EGREGIOUS    103
  217. /* ? */
  218. #define EIEIO        104
  219. /* Gratuitous error.  */
  220. #define EGRATUITOUS    105
  221.  
  222. /* EOPSYS was originally called EOS but this caused problems.  */
  223. #define EOPSYS        106
  224. #define ESIG        107
  225.  
  226. #define __SYS_NERR    107
  227.  
  228. #ifdef __cplusplus
  229.     }
  230. #endif
  231.  
  232. #endif
  233.